//
//  LQYQuickLogonController.m
//  BuDeJie
//
//  Created by runone02 on 2018/6/15.
//  Copyright © 2018年 李启云. All rights reserved.
//

#import "LQYQuickLogonController.h"
#import "LQYQuickLogonView.h"
#import "LQYRegisterController.h"
@interface LQYQuickLogonController ()
@property (nonatomic ,strong) LQYQuickLogonView *logonView;
@end

@implementation LQYQuickLogonController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.logonView = [[LQYQuickLogonView alloc]init];
    [self.view addSubview:self.logonView];
     [self.logonView.enrollBtn addTarget:self action:@selector(enrollBtnClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.logonView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.view).with.offset (80);
        make.left.mas_equalTo(self.view);
        make.right.mas_equalTo(self.view);
        make.bottom.mas_equalTo(self.view);
    }];
}

//注册登录
- (void)enrollBtnClick:(UIButton *)button {
    LQYRegisterController *reg = [[LQYRegisterController alloc]init];
    [self.navigationController pushViewController:reg animated:YES];
    
}

@end
